
import 'dart:io';

import 'package:baselib/utils/gallery_camera_pick_util.dart';
import 'package:baselib/utils/load_util.dart';
import 'package:baselib/utils/log_util.dart';
import 'package:baselib/utils/navigator_util.dart';
import 'package:baselib/utils/time_util.dart';
import 'package:baselib/utils/toast_util.dart';
import 'package:flutter/material.dart';
import 'package:framelib/base/base_view_model.dart';
import 'package:framelib/config/api_config.dart';
import 'package:framelib/config/route_config.dart';
import 'package:framelib/net/baseentity.dart';
import 'package:framelib/utils/color_util.dart';
import 'package:framelib/utils/drawable_util.dart';
import 'package:framelib/utils/oss_util.dart';
import 'package:framelib/utils/select_util.dart';
import 'package:framelib/utils/string_util.dart';
import 'package:framelib/widgets/select_gender_widget.dart';
import 'package:module_business/module_comm/model/user_entity.dart';
import 'package:module_business/module_comm/model/user_params_model.dart';
import 'package:module_business/module_my/model/recharge_coin_model.dart';
import 'package:module_business/module_my/service/module_my_service.dart';
import 'package:get/get.dart';

import 'my_view_model.dart';

class RechargeViewModel extends BaseViewModel<ModuleMyService>{

  ModuleMyService moduleMyService;
  List<RechargeCoinModel> rechargeCoinModels=[];

  @override
  ModuleMyService createService() =>moduleMyService = ModuleMyService();
  @override
  void onInit() {
    LogUtil.d('MyViewModel-->onInit');
    super.onInit();
    setInitData();
  }

  void setInitData() {
    rechargeCoinModels.add(RechargeCoinModel(
      coinNum: 1250,price: 1.99,imgPath: DrawableUtil.instance.icon_coin_1250
    ));
    rechargeCoinModels.add(RechargeCoinModel(
        coinNum: 2450,price: 4.99,imgPath: DrawableUtil.instance.icon_coin_2450
    ));
    rechargeCoinModels.add(RechargeCoinModel(
        coinNum: 5150,price: 9.99,imgPath: DrawableUtil.instance.icon_coin_5150
    ));
    rechargeCoinModels.add(RechargeCoinModel(
        coinNum: 10600,price: 19.99,imgPath: DrawableUtil.instance.icon_coin_10600
    ));
    rechargeCoinModels.add(RechargeCoinModel(
        coinNum: 27000,price: 39.99,imgPath: DrawableUtil.instance.icon_coin_27000
    ));
  }

}
